import React, { useState } from 'react';
import { Tabs } from 'antd';
import EnumDict from './EnumDict';
import SuperDict from './SuperDict';

const DictIndex = () => {
  const [activeTab, setActiveTab] = useState('enum');

  const items = [
    {
      key: 'enum',
      label: '枚举字典',
      children: <EnumDict />,
    },
    {
      key: 'super',
      label: '超级字典',
      children: <SuperDict />,
    },
  ];

  return (
    <div style={{ padding: '20px' }}>
      <Tabs 
        activeKey={activeTab} 
        items={items} 
        onChange={setActiveTab} 
      />
    </div>
  );
};

export default DictIndex;